import request from '@/utils/request'

// 查询产品供需情况列表
export function listProductSupplyDemand(query) {
  return request({
    url: '/pms/productSupplyDemand/list',
    method: 'get',
    params: query
  })
}

// 查询产品供需情况详细
export function getProductSupplyDemand(id) {
  return request({
    url: '/pms/productSupplyDemand/' + id,
    method: 'get'
  })
}

// 新增产品供需情况
export function addProductSupplyDemand(data) {
  return request({
    url: '/pms/productSupplyDemand',
    method: 'post',
    data: data
  })
}

// 修改产品供需情况
export function updateProductSupplyDemand(data) {
  return request({
    url: '/pms/productSupplyDemand',
    method: 'put',
    data: data
  })
}

// 删除产品供需情况
export function delProductSupplyDemand(id) {
  return request({
    url: '/pms/productSupplyDemand/' + id,
    method: 'delete'
  })
}
